package ${packageName}.Model;

import java.util.Date;

public class ${modelName}{
    <#if columns??>
        <#list columns as colum>
            <#if colum.type='VARCHAR' || colum.type = 'CHAR' ||colum.type = 'TEXT'>
                /**
                *${colum.remark}
                */
                private String ${colum.propertyName?uncap_first};
            </#if>
            <#if colum.type='INT' || colum.type='INT UNSIGNED'>
                /**
                *${colum.remark}
                */
                private Integer ${colum.propertyName?uncap_first};
            </#if>
            <#if colum.type='DOUBLE'>
                /**
                *${colum.remark}
                */
                private Double ${colum.propertyName?uncap_first};
            </#if>
            <#if colum.type='BIGINT'>
                /**
                *${colum.remark}
                */
                private Long ${colum.propertyName?uncap_first};
            </#if>
            <#if colum.type='DATETIME' || colum.type='TIMESTAMP'>
                /**
                *${colum.remark}
                */
                private Date ${colum.propertyName?uncap_first};
            </#if>
        </#list>
    </#if>
    <#if columns??>
        <#list columns as colum>
            <#if colum.type='VARCHAR' || colum.type = 'CHAR' ||colum.type = 'TEXT'>
                public String get${colum.propertyName}(){
                    return ${colum.propertyName?uncap_first};
                }
                public void set${colum.propertyName}(String ${colum.propertyName?uncap_first}){
                    this.${colum.propertyName?uncap_first}=${colum.propertyName?uncap_first};
                }
            </#if>
            <#if colum.type='INT' || colum.type='INT UNSIGNED'>
                public Integer get${colum.propertyName}(){
                    return ${colum.propertyName?uncap_first};
                }
                public void set${colum.propertyName}(Integer ${colum.propertyName?uncap_first}){
                    this.${colum.propertyName?uncap_first}=${colum.propertyName?uncap_first};
                }
            </#if>
            <#if colum.type='DOUBLE'>
                public Double get${colum.propertyName}(){
                    return ${colum.propertyName?uncap_first};
                }
                public void set${colum.propertyName}(Double ${colum.propertyName?uncap_first}){
                    this.${colum.propertyName?uncap_first}=${colum.propertyName?uncap_first};
                }
            </#if>
            <#if colum.type='BIGINT'>
                public Long get${colum.propertyName}(){
                    return ${colum.propertyName?uncap_first};
                }
                public void set${colum.propertyName}(Long ${colum.propertyName?uncap_first}){
                    this.${colum.propertyName?uncap_first}=${colum.propertyName?uncap_first};
                }
            </#if>
            <#if colum.type='DATETIME' || colum.type='TIMESTAMP'>
                public Date get${colum.propertyName}(){
                    return ${colum.propertyName?uncap_first};
                }
                public void set${colum.propertyName}(Date ${colum.propertyName?uncap_first}){
                    this.${colum.propertyName?uncap_first}=${colum.propertyName?uncap_first};
                }
            </#if>
        </#list>
    </#if>
}